package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：AddAddressActivityParser   
* 类描述   ：添加地址实体类+解析
* 创建人   ：耿卫斌   
* 创建时间：2016-10-11 下午3:14:02   
*
 */
public class AddAddressActivityParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private int state;
	private String address_id;
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		state = obj.optInt("state");
		address_id = obj.optString("address_id");
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getAddress_id() {
		return address_id;
	}
	public void setAddress_id(String address_id) {
		this.address_id = address_id;
	}
	public AddAddressActivityParser() {
		super();
	}
	public AddAddressActivityParser(int state, String address_id) {
		super();
		this.state = state;
		this.address_id = address_id;
	}
	@Override
	public String toString() {
		return "AddAddressActivityParser [state=" + state + ", address_id="
				+ address_id + "]";
	}
}
